import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import {AdminComponent} from "./admin/admin.component";
import {EditUserComponent} from "./admin/edit-user/edit-user.component";

const  adminModule = ()=>
  import('./admin/admin.module').then(module => module.AdminModule);


const routes: Routes = [
  {
    path: 'admin',
    loadChildren: adminModule
  }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
